<?php
/**
 * Created by PhpStorm.
 * User: tt
 * Date: 2017/12/26
 * Time: 20:46
 */

namespace app\admin\validate;
use think\Validate;

class Source extends Validate
{
    protected $rule = [
        'name' => 'require|unique:qudao|token',
    ];
    protected $message = [
        'title.require' => '来源名称不能为空',
    ];
    protected $scene = [
        'edit' => ['rules' => 'string'],
    ];
}